﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DiskInspector.Model.MetaDataAttributes;

namespace DiskInspector.Model
{
    public class DiskPartitionTable
    {
        [FieldLength(ByteLength = 1)]
        public byte BootIndicator { get; set; }

        [FieldLength(ByteLength = 1)]
        public byte StartHead { get; set; }

        [FieldLength(BitLength = 6)]
        public byte StartSector { get; set; }

        [FieldLength(BitLength = 10)]
        public short StartCylinder { get; set; }

        [FieldLength(ByteLength = 1)]
        public byte PartitionTypeIndicator { get; set; }

        [FieldLength(ByteLength = 1)]
        public byte EndHead { get; set; }

        [FieldLength(BitLength = 6)]
        public byte EndSector { get; set; }

        [FieldLength(BitLength = 10)]
        public short EndCylinder { get; set; }

        [FieldLength(ByteLength = 4)]
        public int SectorsPrecedingPartition { get; set; }

        [FieldLength(ByteLength = 4)]
        public int SectorsInPartition { get; set; }
    }
}
